SuggestionProvider
Interface for providing suggestions into the widget based on current widget and validator state.
Author
fzzyhmstrs
Since
0.2.0
Functions
Link copied to clipboard
abstract fun getSuggestions(s: String, cursor: Int, choiceValidator: ChoiceValidator<String>): CompletableFuture<Suggestions>
Provide suggestions for the widget based on current widget state. The typical approach involves using either AllowableStrings or AllowableIdentifiers, both of which have a convenient built-in method for generating suggestions.